import {lazy} from 'react'
const Home =lazy(()=>import('../pages/Home/index'))
const List =lazy(()=>import('../pages/List/index'))
const List1 =lazy(()=>import('../pages/List/List1/index'))
const Layout =lazy(()=>import('../pages/Layout/index'))
import {createBrowserRouter} from 'react-router-dom'

const router=createBrowserRouter([
    {
        path:'/',
        element:<Layout />,
        children:[
            {
                path:'/',
                element:<Home />
            },
            {
                path:'/list',
                element:<List />,
                children:[
                    {
                        path:'/list/list1',
                        element:<List1 />
                    }
                ]
            },
           
        ]
    }
])
export default router